package edu.cmu.cs211.snake.gui;

import javax.swing.JFrame;

public class Gui extends JFrame {
	private static final long serialVersionUID = -7712051292616060956L;

	public static void main (String[] args)
	{
		new Gui ();
	}

	private SnakePanel panel = new SnakePanel ();

	public Gui () {
		setDefaultCloseOperation (EXIT_ON_CLOSE);
		setTitle ("Snake");
		add (panel);
		setSize (640, 480);
		addKeyListener (panel.getKeyListener ());
		setVisible (true);
	}
}
